package com.yq.tanhua

import android.app.Application
import android.content.Context
import base.IAppDelegate
import com.alibaba.android.arouter.facade.annotation.Route
import com.fmt.mvi.learn.gobal.log
import com.yq.tanhua.im.HxImFunction
import com.yq.tanhua.im.ImFunction
import config.TanHua_application
import dagger.hilt.android.HiltAndroidApp
import javax.inject.Inject

/**
 * @author: user
 * @date: 2023/4/23
 */

@Route(path = TanHua_application)
class TanhuaApplication : IAppDelegate {


    //    @Inject
    lateinit var imFunction: ImFunction


    override fun init(context: Context?) {
        imFunction = HxImFunction()
    }

    override fun onCreate(application: Application?) {
        "探花模块初始化".log()
        imFunction.init(application!!)

    }

}